libxl: arm: do not create /chosen/bootargs in DTB if no cmdline is specified
authorIan Campbell <ian.campbell@citrix.com>
Wed, 26 Feb 2014 12:13:00 +0000 (12:13 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 14 Mar 2014 14:56:22 +0000 (14:56 +0000)
commit3647a486ec05b1e01930ff299b18fc2b632e2cb0
treee74153ef5c70a932c12094916f15ecc9d5e34e3d
parentadf8340b3f19c3bc9959bf498ef07690e8faa50a
libxl: arm: do not create /chosen/bootargs in DTB if no cmdline is specified

Otherwise we deference a NULL pointer.

I saw this while experimenting with libvirt on Xen on ARM, xl already checks
that the command line is non NULL and provides "" as a default.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Cc: george.dunlap@citrix.com>
tools/libxl/libxl_arm.c